package og.example.service;
import og.example.dao.GroupDataProvider;
import og.example.entity.Group;
import java.util.List;

public class GroupService {
    private GroupDataProvider groupDataProvider = new GroupDataProvider();

    public boolean groupAdd(String groupName, String className) {
        return groupDataProvider.groupAdd(groupName, className);
    }

    public boolean groupDelete(String groupName) {
        return groupDataProvider.groupDelete(groupName);
    }

    public boolean groupUpdate(String groupName, String newGroupName) {
        return groupDataProvider.groupUpdate(groupName, newGroupName);
    }

    public List<Group> groupQuery() {
        return groupDataProvider.groupQuery();
    }
}